// 将element-ui collapse组件的模板重写
<template>
  <draggable 
    class="el-collapse"
    :list="list">
    <slot></slot>
  </draggable>
</template>

<script>
import draggable from "vuedraggable";
import {
  Collapse
} from 'element-ui'

export default {
  name: "weCollapse",
  // 重写collapse组件
  extends: Collapse,

  props: {
    list: Array
  },
  
  components: {
    draggable
  }
}
</script>